package com.fsx.provider.service;

import com.fsx.provider.dao.GoodsDao;
import com.fsx.provider.entity.Goods;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GoodsService {
    @Autowired
    private GoodsDao goodsDao;

    /**
     * 根据 id 查询
     *
     * @param id
     * @return
     */
    public Goods finOneById(int id) {
        return goodsDao.finOneById(id);
    }
}
